package com.bidbid.item.dao.domain;

import java.sql.Timestamp;

/**
 * basic info for item
 * 
 * @author zhaofeng.zhou
 * 
 */
public class Item {
	final public static int STATE_NOT_STARTED = 0;
	final public static int STATE_IN_AUCTION = 1;
	final public static int STATE_SOLD_OUT = 2;
	/**
	 * The id of item, which is unique.
	 */
	private int itemId;

	/**
	 * The name of item.
	 */
	private String itemName;

	/**
	 * The description of this item.
	 */
	private String description;

	/**
	 * This is only the file name of this item's picture, without any path info.
	 * All of the pictures will be stored in a specific directory under server.
	 */
	private String pictureName;

	/**
	 * The stat of this item.
	 */
	private int itemState;

	/**
	 * The time when this item is added.
	 */
	private Timestamp addTime;

	/**
	 * This attribute indicates whether this item is recommended.
	 */
	private boolean recommended;

	public Timestamp getAddTime() {
		return addTime;
	}

	public void setAddTime(Timestamp addTime) {
		this.addTime = addTime;
	}

	public boolean isRecommended() {
		return recommended;
	}

	public void setRecommended(boolean recommended) {
		this.recommended = recommended;
	}

	public int getItemId() {
		return itemId;
	}

	public void setItemId(int itemId) {
		this.itemId = itemId;
	}

	public String getItemName() {
		return itemName;
	}

	public void setItemName(String itemName) {
		this.itemName = itemName;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getPictureName() {
		return pictureName;
	}

	public void setPictureName(String pictureName) {
		this.pictureName = pictureName;
	}

	public int getItemState() {
		return itemState;
	}

	public void setItemState(int itemState) {
		this.itemState = itemState;
	}

}
